class RoomCount {
  DateTime? createDate;
  int? createDateYear;
  int? createDateMonth;
  double? fulRentRate;

  RoomCount(this.createDate,this.createDateYear,this.createDateMonth, this.fulRentRate);

  Map<String, dynamic> toMap() {
    return {
      'createDate': createDate?.millisecondsSinceEpoch,
      'createDateYear': createDateYear,
      'createDateMonth': createDateMonth,
      'fulRentRate': fulRentRate,
    };
  }

  factory RoomCount.fromMap(Map<String, dynamic> map) {
    return RoomCount(
      map['createDate'] != null
          ? DateTime.fromMillisecondsSinceEpoch(map['createDate'])
          : null,
      map['createDateYear'],
      map['createDateMonth'],
      map['fulRentRate'],
    );
  }

  @override
  String toString() {
    return 'RoomCount{createDate: $createDate, createDateYear: $createDateYear, createDateMonth: $createDateMonth, fulRentRate: $fulRentRate}';
  }
}

